package cn.wwcyc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.wwcyc.domain.TjReg;
import cn.wwcyc.service.TjRegService;
import cn.wwcyc.mapper.TjRegMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author ad
* @description 针对表【TJ_REG】的数据库操作Service实现
* @createDate 2024-05-02 21:22:09
*/
@Service
public class TjRegServiceImpl extends ServiceImpl<TjRegMapper, TjReg>
    implements TjRegService{
    @Autowired
    TjRegMapper tjRegMapper;

    @Override
    public TjReg getObjById(Long id) {
        TjReg reg = tjRegMapper.selectObjById(id);
        return reg;
    }

    @Override
    public List<TjReg> ListBydevandyewutypeid(Long devid, Long yewutypeid) {
        List<TjReg> list = tjRegMapper.selectListWithObjBydevandyewutype(devid, yewutypeid);
        return list;
    }
}




